package cool.tsy.emos.wx.db.dao;

import cool.tsy.emos.wx.db.pojo.TbCheckin;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * <p>
 * 签到表 Mapper 接口
 * </p>
 *
 * @author WangHongxuan
 * @since 2021-09-24
 */
@Mapper
public interface TbCheckinDao {

    Integer haveCheckin(HashMap param);

    void insert(TbCheckin checkin);

    HashMap searchTodayCheckin(int userId);

    long searchCheckinDays(int userId);

    ArrayList<HashMap> searchWeekCheckin(HashMap param);

    /**
     * <h2>删除用户签到数据</h2>
     */
    int deleteUserCheckin(int userId);
}
